package cn.sxt.controller;

import cn.sxt.DataGridView;
import cn.sxt.service.BillTypeService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Mxb
 * @version 1.0
 * @date 2020/5/19 17:03
 */
@RestController
@RequestMapping("/type")
public class BillTypeController {
    // 远程调用暴露的服务
    @Reference
    private BillTypeService billTypeService;

    /**
     * 全查询分类
     * @return
     */
    @RequestMapping("/loadAllBillType")
    public DataGridView findAllType(){
        DataGridView allBillType = billTypeService.findAllBillType();
        return allBillType;
    }

}
